package com.scm.service;

import com.scm.common.core.domain.entity.SysUser;
import com.scm.dto.req.supplier.ScmSupplierReq;
import com.scm.dto.resp.supplier.SupplierProjectResp;
import com.scm.persist.model.ScmSupplier;

import java.util.List;

/**
 * 订单商品Service接口
 *
 * @author reptilemanager
 * @date 2024-04-20
 */
public interface IScmSupplierService
{
    /**
     * 查询订单商品
     *
     * @param id 订单商品主键
     * @return 订单商品
     */
    public ScmSupplier selectScmSupplierById(Long id);

    /**
     * 查询订单商品列表
     *
     * @param scmSupplier 订单商品
     * @return 订单商品集合
     */
    public List<ScmSupplier> selectScmSupplierList(SysUser sysUser,ScmSupplier scmSupplier);

    /**
     * 新增订单商品
     *
     * @param scmSupplier 订单商品
     * @return 结果
     */
    public int insertScmSupplier(ScmSupplier scmSupplier,SysUser sysUser );
    public int insertScmSupplier(ScmSupplierReq req,SysUser sysUser );

    /**
     * 修改订单商品
     *
     * @param scmSupplier 订单商品
     * @return 结果
     */
    public int updateScmSupplier(ScmSupplier scmSupplier, SysUser sysUser);

    public int updateScmSupplier(ScmSupplierReq req, SysUser sysUser);

    /**
     * 批量删除订单商品
     *
     * @param ids 需要删除的订单商品主键集合
     * @return 结果
     */
    public int deleteScmSupplierByIds(List<Long> ids);

    /**
     * 删除订单商品信息
     *
     * @param id 订单商品主键
     * @return 结果
     */
    public int deleteScmSupplierById(Long id);

    List<SupplierProjectResp> selectScmSupplierProjectList(Long tenantId, Long supplierId);


}
